package game;

/**
 *	@(#)ExplorationChit.java
 *
 *	The <code>ExplorationChit</code> class represents an available
 *	exploration chit on the game board.
 *
 *	@author Grzegorz Kobiela
 *	@version 1.0 2008/4/30
 */
public final class ExplorationChit
extends GameObject
{
	/** The resource represented. */
	private game.resources.ResourceType type;

	/**
	 *	Creates a new <code>ExplorationChit</code> instance.
	 *	@param type the resource type
	 */
	public ExplorationChit(game.resources.ResourceType type) {
		switch(type) {
			case GRAIN: case OLIVES: case SHEEP: case WINE:
				this.type = type;
				break;
			default:
				throw new IllegalArgumentException(type + " is not a valid exploration type!");
		}
	}

	/**
	 *	Returns the resource type.
	 *	@return the resource type
	 */
	public game.resources.ResourceType getType() {
		return type;
	}
}